<template>
  <div class="page-bg">
    <h1>
      {{title}}
    </h1>
  </div>
</template>

<script setup name="PageBg">
const Props = defineProps({
  title: {
    type: String,
    default: "",
  },
})
</script>

<style lang="scss" scoped>
.page-bg {
  width: 100vw;
  height: 400px;
  background: #0000004D;
  text-align: center;
  position: relative;
  h1 {
    position: absolute;
    top: 50%;
    width: 100%;
    color: #fff;
    font-size: 42px;
    line-height: 36px;
  }
}

@media (max-width: 580px) {
  .page-bg {
    height: 200px !important;
    h1 {
      top: 45%;
    }
  }
}
</style>